package com.zcmyth;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class MarketingTest {

  private Marketing m = new Marketing();

  @Test
  public void test0() {
    assertEquals(16, m.howMany(new String[] { "", "", "", "" }));
  }

  @Test
  public void test1() {
    assertEquals(2, m.howMany(new String[] { "1 4", "2", "3", "0", "" }));
  }

  @Test
  public void test2() {
    assertEquals(-1, m.howMany(new String[] { "1", "2", "0" }));
  }

  @Test
  public void test3() {
    assertEquals(2, m.howMany(new String[] { "1", "2", "3", "0", "0 5", "1" }));
  }
  
  @Test
  public void test4() {
    assertEquals(2, m.howMany(new String[] { "1", "2" ,""}));
  }

}
